﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MyAdmin/QuanLy.master" AutoEventWireup="true" CodeFile="ChiTietLichSu_AM.aspx.cs" Inherits="MyAdmin_ChiTietLichSu_AM" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style1
        {
            width: 644px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <fieldset>
<legend align="center"><b>Chi Tiết Lịch Sử</b></legend>
  <table>
    <tr>
    <td align="center" class="style1">
    <asp:DetailsView ID="dtvChiTietLichSu" runat="server" Height="50px" 
        Width="50%" AutoGenerateRows="False" BackColor="White" BorderColor="#999999" 
        BorderStyle="None" BorderWidth="1px" CellPadding="3" DataKeyNames="ID" 
        DataSourceID="LQDSChiTietLichSu" GridLines="Vertical" 
        HeaderText="Chi Tiết Lịch Sử" 
        oniteminserted="dtvChiTietLichSu_ItemInserted" 
        onitemupdated="dtvChiTietLichSu_ItemUpdated" 
            ValidationGroup="CreateUserWizard1">
        <AlternatingRowStyle BackColor="#DCDCDC" />
        <EditRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
        <Fields>
            <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" 
                ReadOnly="True" SortExpression="ID" />
            <asp:BoundField DataField="IDLichSu" HeaderText="IDLichSu" 
                SortExpression="IDLichSu" />
            <asp:BoundField DataField="TenSanpham" HeaderText="Tên Sản Phẩm" 
                SortExpression="TenSanpham" />
            <asp:BoundField DataField="SoLuong" HeaderText="Số Lượng" 
                SortExpression="SoLuong" />               
            <asp:BoundField DataField="GiaTien" HeaderText="Giá Tiền" 
                SortExpression="GiaTien" />
            <asp:BoundField DataField="ThanhTien" HeaderText="Thành Tiền" 
                SortExpression="ThanhTien" />
            <asp:CommandField ShowEditButton="True" ShowInsertButton="True" 
                CancelText="Hủy" EditText="Cập Nhật" InsertText="Thêm" NewText="Thêm" 
                UpdateText="Cập Nhật" />
        </Fields>
        <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
        <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" 
            HorizontalAlign="Center" />
        <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
        <RowStyle BackColor="#EEEEEE" ForeColor="Black" HorizontalAlign="Center" />
    </asp:DetailsView>
      <asp:Label runat="server" Text="Label" ID="lblThongBaoDTView" ForeColor="White" Visible="false"/>
      </td>
    </tr>
    </table>
<br />
    <asp:GridView ID="gvDSChiTietLichSu_AM" runat="server" AllowPaging="True" 
        AutoGenerateColumns="False" BackColor="White" BorderColor="#999999" 
        BorderStyle="None" BorderWidth="1px" CellPadding="3" DataKeyNames="ID" 
        GridLines="Vertical" onpageindexchanged="gvDSChiTietLichSu_AM_PageIndexChanged" 
        onpageindexchanging="gvDSChiTietLichSu_AM_PageIndexChanging" 
        onselectedindexchanged="gvDSChiTietLichSu_AM_SelectedIndexChanged" Width="100%">
        <AlternatingRowStyle BackColor="#DCDCDC" />
        <Columns>
            <asp:CommandField ShowSelectButton="True" SelectText="Chọn" />
            <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" 
                ReadOnly="True" SortExpression="ID" />
            <asp:BoundField DataField="IDLichSu" HeaderText="IDLichSu" 
                SortExpression="IDLichSu" />
            <asp:BoundField DataField="TenSanpham" HeaderText="Tên Sản Phẩm" 
                SortExpression="TenSanpham" />
            <asp:BoundField DataField="SoLuong" HeaderText="Số Lượng" 
                SortExpression="SoLuong" />
            <asp:BoundField DataField="GiaTien" HeaderText="Giá Tiền" 
                SortExpression="GiaTien" />
            <asp:BoundField DataField="ThanhTien" HeaderText="Thành Tiền" 
                SortExpression="ThanhTien" />
                <asp:TemplateField>
                <ItemTemplate>
                    <asp:CheckBox ID="checkXoa" runat="server" AutoPostBack="True" />
                </ItemTemplate>
                </asp:TemplateField>
        </Columns>
        <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
        <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
        <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
        <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#F1F1F1" />
        <SortedAscendingHeaderStyle BackColor="#0000A9" />
        <SortedDescendingCellStyle BackColor="#CAC9C9" />
        <SortedDescendingHeaderStyle BackColor="#000065" /> 
    </asp:GridView>
    <table>
    <tr>
    <td align="right" class="style1">
     <asp:Label ID="lblThongBaoGridView" runat="server" ForeColor="White" Text="Label"></asp:Label>
          <asp:Button ID="XoaNhieuBUTTON" runat="server" Text="Xóa Đã Chọn" 
              OnClick="XoaNhieuBUTTON_Click"  style="margin-left: 0px" />
            
        </td>
    </tr>
    </table>
     <asp:LinqDataSource ID="LQDSChiTietLichSu" runat="server" 
        ContextTypeName="DataAccess_Layer.DataClasses_RetailerDataContext" 
        EnableDelete="True" EnableInsert="True" EnableUpdate="True" EntityTypeName="" 
        TableName="ChiTietLichSus" oninserted="LQDSChiTietLichSu_Inserted" 
        onselecting="LQDSChiTietLichSu_Selecting" 
        onupdating="LQDSChiTietLichSu_Updating">
    </asp:LinqDataSource>
</fieldset>
</asp:Content>

